package com.ltkj.baseplatform.domain;

import javax.validation.constraints.NotNull;

/**
 * 用于传递只有id的请求
 *
 * @author liupf
 * @date 2023-08-30
 */
public class SimpleValue {

    /**
     * 简单的Id请求
     */
    public static class Id {
        /**
         * 主键id
         */
        @NotNull(message = "主键不能为空")
        private Long id;

        public Long getId() {
            return id;
        }

        public void setId(Long id) {
            this.id = id;
        }
    }

    public static class StrId {
        /**
         * 主键id
         */
        @NotNull(message = "主键不能为空")
        private String id;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }
    }


    public static class Ids {
        /**
         * 主键id 数组
         */
        @NotNull(message = "主键不能为空")
        private Long[] ids;

        public Long[] getIds() {
            return ids;
        }

        public void setIds(Long[] ids) {
            this.ids = ids;
        }
    }

}
